import Vue from "vue"

import Vuex from "vuex"

Vue.use(Vuex)

const store = new Vuex.Store({
		state: {
			myIntrgral: 0,
			weeklyData: []
		},
		mutations: {
			IntrgralData(state,data){
				state.myIntrgral = data
			},
			weekly(state,data){
				state.weeklyData = data
			},
			exchange(state,data){
				state.myIntrgral -= data
			}
		},
		actions: {}
})


export default store